#pragma once
typedef struct {
    char **paths;
    int count;
    int capacity;
} PathArray;

void init_spiffs();
void write_file(const char *path, const char *data) ;
void read_file(const char *path) ;
void list_spiffs_directory(const char *base_path);
void init_path_array(PathArray *array, int initial_capacity);
void store_paths_recursive(PathArray *array, const char *base_path);
void delete_file(const char *filepath) ;